package com.hqyj.service.service;


import com.hqyj.dao.dao.Yan_liuyandao;
import com.hqyj.pojo.Yan_liuyan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LiuyanServiceImpl implements LiuyanService {
    @Autowired(required = false)
    Yan_liuyandao yan_liuyandao;
    @Override
    public String liuyan(Yan_liuyan yan_liuyan) {
        int value = yan_liuyandao.liuyan(yan_liuyan);
        if (value > -1){
            return "success";
        }
        return "false";
    }

    @Override
    public List<Yan_liuyan> getDongtai() {
        return yan_liuyandao.getDongtai();
    }
}
